//
//  WGQEdgeInsetsLabel.m
//  meiang_edu
//
//  Created by gq w on 2018/9/21.
//  Copyright © 2018年 com.meiang.meiang_edu. All rights reserved.
//

#import "WGQEdgeInsetsLabel.h"

@implementation WGQEdgeInsetsLabel

- (void)setContentInset:(UIEdgeInsets)contentInset {
    _contentInset = contentInset;
    NSString *tempString = self.text;
    self.text = @"";
    self.text = tempString;
}
-(void)drawTextInRect:(CGRect)rect {
    [super drawTextInRect:UIEdgeInsetsInsetRect(rect, self.contentInset)];
}

@end
